-
Notifications
You must be signed in to change notification settings - Fork 421
test: add benchmark on AWS Lambda #261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add benchmark on AWS Lambda #261
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #261 +/- ##
===========================================
- Coverage 99.81% 99.75% -0.07%
===========================================
Files 76 79 +3
Lines 2763 2839 +76
Branches 113 118 +5
===========================================
+ Hits 2758 2832 +74
- Misses 4 5 +1
- Partials 1 2 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!! Only two remarks (Memory, Readme), and a minor (comment on sleep 150)
Haha I glanced too quickly at them then |
@heitorlessa You might want to set a baseline and publish results between each release to track regressions. Either as a simple json file or something funky like this: https://simonwillison.net/2020/Oct/9/git-scraping/ |
Before we merge this, open question: Right now, this depends on |
Create a bucket under Powertools account - this will get us closer to
automate and check for regressions
…On Wed, 20 Jan 2021 at 08:49, Nicolas Moutschen ***@***.***> wrote:
Before we merge this, open question:
Right now, this depends on sam deploy --guided which require user inputs.
Should I create an S3 bucket for deployment artefacts (similar to what I
did here
<https://github.com/aws-samples/aws-serverless-ecommerce-platform/blob/master/tools/package#L50-L54>)
so that this can be fully automated?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPQBF764G3H6JAD4MMTGLS22DG7ANCNFSM4WAVUTYQ>
.
|
For the generic case, that means just checking for an environment variable and letting other users manage it? |
Oh, I see. You're thinking of customers also running this benchmark by
themselves, and not us (maintainers) only - Did I get this right?
If that's the case, yes, it'd have to be a default for us (our S3 bucket in
our Powertools account), and if customers want to run that they can
override it. I think for customers in general, it might be best to provide
guidance on how to use Python Tuna to generate flame graphs to measure
their overall import time, since they might use more than just the Core
utilities + other libraries like Requests which increase a lot in startup
…On Wed, 20 Jan 2021 at 13:11, Nicolas Moutschen ***@***.***> wrote:
Create a bucket under Powertools account - this will get us closer to
automate and check for regressions
For the generic case, that means just checking for an environment variable
and letting other users manage it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPQBHXCMPIDBBW3766Y33S23B5XANCNFSM4WAVUTYQ>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some tiny adjustments to ensure people are aware this runs on Unix based systems only, it can incur charges, and how long the script waits for data to propagate from CWL to CWLI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot again @nmoutschen - Merging this now.
Issue #, if available: None
Description of changes:
Add a benchmark that deploys Lambda functions with/without Lambda Powertools to measure the performance impact of using it.
Checklist
Breaking change checklist
None
RFC issue #: None
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.